package com.kds.smarthome.entity;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Data
@Document(collection = "data")
public class WeatherData {
    @Field("ts")
    private Date timestamp;

    private String region;
    private String temperature;
    private String humidity;

    @Field("weatherText")
    private String weatherText;

    @Field("weatherIcon")
    private String weatherIcon;

    @Field("windSpeedLevel")
    private String windSpeedLevel;

    @Field("windDirection")
    private String windDirection;

    @Field("windSpeedKmh")
    private String windSpeedKmh;

    @Field("pm2p5")
    private String pm2p5;

    @Field("airQualityIndex")
    private String airQualityIndex;

    @Field("airQuality")
    private String airQuality;
}
